<?php

// +----------------------------------------------------------------------
// | 青如汉语
// | 成语Service
// +----------------------------------------------------------------------
// | Author: 张亚 <zhyacn@163.com>
// | Time: 2017-11-17
// +----------------------------------------------------------------------

include APP_PATH . "common/extend.php";
/**
+----------------------------------------------------------
 * 浏览记录按照时间排序
+----------------------------------------------------------
 */
function my_sort($a, $b) {
	$a = substr($a, 1);
	$b = substr($b, 1);
	if ($a == $b) {
		return 0;
	}

	return ($a > $b) ? -1 : 1;
}